package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**库存总览类*/
@Data
@ApiModel(value = "库存总览类")
@TableName("t_goodstotal")
public class GoodsTotalBean {
    /**库存总览编号*/
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_goodsTotalId",type = IdType.INPUT)
    private Integer id;
    /**商品名*/
    @ApiModelProperty(value = "商品名")
    @TableField("gt_name")
    private String name;
    /**库存数量*/
    @ApiModelProperty(value = "库存数量")
    @TableField("gt_num")
    private Integer num;
    /**采购提醒阈值*/
    @ApiModelProperty(value = "采购提醒阈值")
    @TableField("gt_least")
    private Integer least;
    /**商品规格*/
    @ApiModelProperty(value = "商品规格")
    @TableField("gt_size")
    private String size;
    /**商品颜色*/
    @ApiModelProperty(value = "商品颜色")
    @TableField("gt_color")
    private String color;
    /**类型*/
    @ApiModelProperty(value = "类型")
    @TableField("gt_type")
    private String type;

    public GoodsTotalBean() {
    }

    public GoodsTotalBean(String name, Integer num, Integer least, String size, String color, String type) {
        this.name = name;
        this.num = num;
        this.least = least;
        this.size = size;
        this.color = color;
        this.type = type;
    }

    public GoodsTotalBean(Integer id, String name, Integer num, Integer least, String size, String color, String type) {
        this.id = id;
        this.name = name;
        this.num = num;
        this.least = least;
        this.size = size;
        this.color = color;
        this.type = type;
    }

    @Override
    public String toString() {
        return "\nGoodsTotalBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", num=" + num +
                ", least=" + least +
                ", size='" + size + '\'' +
                ", color='" + color + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getLeast() {
        return least;
    }

    public void setLeast(Integer least) {
        this.least = least;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
